package com.songhq.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ConfigurableApplicationContext;

@EnableEurekaClient  //这个注解是在spring cloud netflix  client 模块中的
//@EnableDiscoveryClient(autoRegister = false) //这个注解是在spring cloud commons 模块中的
@SpringBootApplication
public class AppUserApplication {

	public static void main(String[] args) {
		
		System.out.println("马上要执行main方法，实例化 SpringApplication对象");
		SpringApplication appUserApplication = new SpringApplication(AppUserApplication.class);
		System.out.println("已经实例化了 SpringApplication,即将调用 run方法");
		ConfigurableApplicationContext context = appUserApplication.run(args);
		System.out.println("run方法 执行完毕，马上 要关闭 上下文对象  ");
		//context.close();
		
	}

}

//GenericApplicationContext
//ApplicationContext
//ApplicationListener
//AnnotationConfigApplicationContext
//ConfigServletWebServerApplicationContext 
//AnnotationConfigServletWebServerApplicationContext
//ResourceHttpRequestHandler
//org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer
//org.springframework.boot.context.event.EventPublishingRunListener
//LoggingApplicationListener
//EnableEncryptablePropertiesBeanFactoryPostProcessor
//BackgroundPreinitialize
//ConfigFileApplicationListener
//PropertiesPropertySourceLoader
//YamlPropertySourceLoader
//OriginTrackedMapPropertySource
//RestartApplicationListener 
//BootstrapApplicationListener 
